package com.nuanshui.heatedloan.msgcenter.facade;

import com.nuanshui.heatedloan.msgcenter.model.AliSmsSecurityCodeTemplateEnum;
import com.nuanshui.heatedloan.msgcenter.model.VeriCodeResult;


public interface VerificationFacade {

	/**
	 * 发送手机验证码；控制生成节奏，验证码有效期1小时
	 * 
	 * @param mobile
	 */
	VeriCodeResult generateCode(String mobile, AliSmsSecurityCodeTemplateEnum smsTemp, Integer length);

	/**
	 * 验证验证码
	 * 
	 * @param mobile
	 * @param code
	 * @param smsType 消息类型 sign modify_bank
	 */
	boolean verifyCode(String mobile, String code, AliSmsSecurityCodeTemplateEnum smsType);
}
